package org.jeecg.modules.veterans.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.SysUserCountSta;
import org.jeecg.modules.system.vo.SysNameValueVo;
import org.jeecg.modules.veterans.entity.SysService;
import org.jeecg.modules.veterans.entity.SysServiceApp;

import java.util.List;

/**
 * @Description: 优待服务信息表
 * @Author: jeecg-boot
 * @Date:   2022-04-06
 * @Version: V1.0
 */
public interface ISysServiceAppService extends IService<SysServiceApp> {

    /**
     * 根据距离查找附近服务(Discount)
     * @param lng
     * @param lat
     * @param distance
     * @return
     */
    public Page<SysServiceApp> queryDiscountListByCircle(Page<SysServiceApp> page,double lng, double lat, String distance,String area,String type,String sort,String searchCon);

    /**
     * 根据距离查找附近服务(Service)
     * @param lng
     * @param lat
     * @param distance
     * @return
     */
    public Page<SysServiceApp> queryServiceListByCircle(Page<SysServiceApp> page,double lng, double lat, String distance,String area,String sort,String serviceType);

    List<SysServiceApp> selectList(QueryWrapper queryWrapper);

    public Integer queryServiceMountByArea(int area);

    public Integer queryServiceMountByAreaAndServiceType(int area,String serviceType);

}
